package org.nfyszny.zzzs.modules.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.nfyszny.zzzs.modules.entity.ZzzsRecordEnterprise;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 企业备案
 * @Author: jeecg-boot
 * @Date: 2022-11-11
 * @Version: V1.0
 */
public interface ZzzsRecordEnterpriseMapper extends BaseMapper<ZzzsRecordEnterprise> {

    @Update("update zzzs_record_enterprise set is_logout=#{record.isLogout}" +
            "where id=#{record.id}")
    int updateIsDeleteById(@Param("record") ZzzsRecordEnterprise record);

    @Select("select * from zzzs_record_enterprise where id=#{id} ")
    ZzzsRecordEnterprise getHaveInfoById(String id);
}
